package com.ffs.fsm.thread;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.atomic.AtomicBoolean;

/**
 * 测试一下
 * @author ffs80 created 2021/7/9
 */
public class TestBlockQueue<T> extends AbstractQueue<T>{

    private AtomicBoolean running = new AtomicBoolean(false);

    public TestBlockQueue() {
        init();
    }

    @Override
    public void init() {
        queue = new LinkedBlockingQueue<>();
    }

    @Override
    public void setRunning(boolean bool) {
        this.running.set(bool);
    }

    @Override
    public boolean isRunning() {
        return this.running.get();
    }
}
